// 1.引入express
const path = require("path");
const express = require("express");
// 2.获取路由实例
const router = express.Router();

// 3.使用路由实例定义路由规则并导出
router.get("/register", function (req, res) {
  res.sendFile(path.join(__dirname, "../views/register.html"));
});

// 4.导出设置好的路由规则
module.exports = router;
